import request from '@/utils/request'

// 查询报警记录列表
export function listAlarm_records(query) {
  return request({
    url: '/system/alarm_records/list',
    method: 'get',
    params: query
  })
}

// 查询报警记录详细
export function getAlarm_records(recordsId) {
  return request({
    url: '/system/alarm_records/' + recordsId,
    method: 'get'
  })
}

// 新增报警记录
export function addAlarm_records(data) {
  return request({
    url: '/system/alarm_records',
    method: 'post',
    data: data
  })
}

// 修改报警记录
export function updateAlarm_records(data) {
  return request({
    url: '/system/alarm_records',
    method: 'put',
    data: data
  })
}

// 删除报警记录
export function delAlarm_records(recordsId) {
  return request({
    url: '/system/alarm_records/' + recordsId,
    method: 'delete'
  })
}

// 导出报警记录
export function exportAlarm_records(query) {
  return request({
    url: '/system/alarm_records/export',
    method: 'get',
    params: query
  })
}